package com.bluemsun.naturallanguageprocessing.controller;

import com.bluemsun.naturallanguageprocessing.common.ServerResponse;
import com.bluemsun.naturallanguageprocessing.service.IQuestionService;
import com.bluemsun.naturallanguageprocessing.service.IRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author ：hj
 * @date ：Created in 2021/4/25 16:04
 * @description：推荐
 * @modified By：
 * @version: $
 */
@RestController
@RequestMapping("/recommend/")
public class RecommendController {
    @Resource
    private IQuestionService questionService;
    @Resource
    private IRecommendService recommendService;

    @GetMapping("get")
    @ResponseBody
    public ServerResponse get(HttpServletRequest request, @RequestParam("pageSize") Integer pageSize,@RequestParam("pageNum") Integer pageNum){
        return recommendService.recommend(request,pageSize,pageNum);
    }
}
